// Fluxions 3D Engine
// math.hpp
// Copyright (C) 2000-2011 Jonathan Metzgar
// 
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#ifndef FLUXIONS_MATH_HPP
#define FLUXIONS_MATH_HPP

#define _USE_MATH_DEFINES
#include <math.h>

#include "vector2.hpp"
#include "vector3.hpp"
#include "vector4.hpp"
#include "matrix3.hpp"
#include "matrix4.hpp"
#include "math.hpp"

namespace Fluxions
{
	const double pi = 3.141592653589793;
	const double e = 2.718281828459045;

	template <typename T>
	T DegToRad(T x)
	{
		return x * pi / 180.0;
	}
	
	template <typename T>
	T RadToDeg(T x)
	{
		return x * 180.0 / pi;
	}	
}

#endif
